#define _CRT_SECURE_NO_WARNINGS 1
#include "heap.h"

int main()
{
	//int a[] = { 65,100,70,32,50,60 };
	//int a[] = { 2,3,5,7,4,6,8,65,100,70,32,50,60 };
	int a[] = { 9, 8, 7, 6, 5,4,3,2,1 };
	HP hp;
	HeapInit(&hp);
	for (int i = 0; i < sizeof(a)/sizeof(int); i++)
	{
		HeapPush(&hp, a[i]);
	}
	HeapPrint(&hp);

	HeadPop(&hp);
	HeapPrint(&hp);
	HeadPop(&hp);
	HeapPrint(&hp);
	HeadPop(&hp);
	HeapPrint(&hp);

	HeapDestroy(&hp);
	return 0;
}